#ifndef _BOOTLOADER_H_
#define _BOOTLOADER_H_
/*private include********************************************************************/
#include "stm32l0xx_hal.h"
/*private define*******************************************************************/
#define BOOT_ADDR 0x08000000
#define LOAD_ADDR 0x08001000 // 4k bootloader
#define OTA_ADDR  0x08008000 // 32k offset
#define MAX_PAGES 7 * 32
#define PAGE_SIZE    128

/*private function*******************************************************************/
void bootloader_check_firmware_update(void);
uint8_t _erase(void);
#endif //_BOOTLOADER_H_

